﻿using Leeder.Resource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ControllerManageServer
{
    class ConfigInfo
    {
        static ConfigInfo()
        {
            ListenIP = ConfigPath.GetAppSettings(ConfigPath.SystemConfigPath, "ListenIP");
            try
            {
                ListenPort = int.Parse(ConfigPath.GetAppSettings(ConfigPath.SystemConfigPath, "ListenPort"));
            }
            catch { }
        }

        /// <summary>
        /// 监听IP地址
        /// </summary>
        public static string ListenIP { get; set; }
        /// <summary>
        /// 监听端口
        /// </summary>
        public static int ListenPort { get; set; } = -1;
    }
}
